QT = core gui

CONFIG += qt ordered

release {
DESTDIR = $$PWD/_build/release

LIBS = -L$$PWD/_build/release

UI_DIR = $${DESTDIR}/.uic
MOC_DIR = $${DESTDIR}/.moc
OBJECTS_DIR = $${DESTDIR}/.obj
RCC_DIR = $${DESTDIR}/.rcc
}

debug {
DESTDIR = $$PWD/_build/debug

LIBS = -L$$PWD/_build/debug

UI_DIR = $${DESTDIR}/.uic
MOC_DIR = $${DESTDIR}/.moc
OBJECTS_DIR = $${DESTDIR}/.obj
RCC_DIR = $${DESTDIR}/.rcc
}

macx {
    QMAKE_LFLAGS_SONAME += -Wl,-install_name,@executable_path/
} else:linux-* {
    QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,\$\$ORIGIN/\'
}

QMAKE_LFLAGS += -enable-auto-import
